#ifndef __INPUT_LAYER__
#define __INPUT_LAYER__

#include "cocos-ext.h"
USING_NS_CC_EXT;
#include "Header.h"

class InputField;

class InputLayer: public CCLayer
{
public:
	InputLayer();
	~InputLayer();
	CREATE_FUNC(InputLayer);

	bool init();

private:

	InputField* roadLengthInput;
	InputField* roadLaneWidthInput;
	InputField* motoWidthInput;
	InputField* motoLengthInput;
	InputField* carWidthInput;
	InputField* carLengthInput;
	InputField* busWidthInput;
	InputField* busLengthInput;
	InputField* greenLightTimeInput;
	InputField* redLightTimeInput;
	InputField* vMaxMotoInput;
	InputField* vMaxCarInput;
	InputField* vMaxBusInput;

	CCMenu* menu;
	CCSprite* busLaneModeIndicatorSprite;
	int busLaneModeSelected;

	CCPoint getInputPosition(int index);
	void onlyBusMenuTouched(CCObject* sender);
	void busMotoMenuTouched(CCObject* sender);
	void allVerhicleMenuTouched(CCObject* sender);
	void chooseLaneMode(int busLaneModeSelected);
	void okButtonTouched(CCObject* sender, CCControlEvent event);
	void cancelButtonTouched(CCObject* sender, CCControlEvent event);
};
#endif // !__GAME_PLAY_LAYER__
